package org.jeecg.modules.workservice.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.workservice.entity.WorkService;
import org.jeecg.modules.workservice.mapper.IWorkServiceMapper;
import org.jeecg.modules.workservice.service.IWorkServiceService;
import org.jeecg.modules.workservice.mapper.IWorkServiceMapper;
import org.jeecg.modules.workservice.vo.WorkOrderUserVo;
import org.jeecg.modules.workservice.vo.WorkServiceVo;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**
 * @Description: 服务型工单表
 * @Author: jeecg-boot
 * @Date:   2021-08-25
 * @Version: V1.0
 */
@Service
public class WorkServiceServiceImpl extends ServiceImpl<IWorkServiceMapper, WorkService> implements IWorkServiceService {
    @Resource
    private IWorkServiceMapper iWorkServiceMapper;

    /**
     * 查询服务工单信息
     *
     * @param workServiceVo
     * @param page
     * @return
     */
    @Override
    public IPage<WorkServiceVo> findWorkServiceVo(WorkServiceVo workServiceVo, Page page) {
        return iWorkServiceMapper.findWorkServiceVo(workServiceVo,page);
    }

    /**
     * 根据工单编号查询
     *
     * @param serviceWorkId 工单编号
     * @return
     */
    @Override
    public WorkService findWorkService(String serviceWorkId) {
        return iWorkServiceMapper.findWorkService(serviceWorkId);
    }


}
